<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <%= stylesheet_link_tag '../admin_themes/black_white/css/admin.css' %>
  		<% if controller.tinymce_used %>
  		<%# Include TinyMCE before other JS to avoid problems - %>
  		<%= javascript_include_tag 'tiny_mce/tiny_mce','initial_tiny_mce' %>
  		<!-- /TinyMCE -->
  		<script type="text/javascript">
  		 window.onload = function(){
  		 	initialTinyMCE();
  		 };
  		</script>
  		<% end %>
        <title><%= $page_title %><%= " | #{controller.action_title}" if controller.action_title %> | Babaru.net</title>
    </head>
    <body id="admin">
        <div id="global-header">
            <h1 id="site-name" class="hide"><%= $page_title %><%= " | #{controller.action_title}" if controller.action_title %></h1>
            <ul id="global-menu" class="nav">
                <li class="first">
                    <%= link_to 'Dashboard', {:controller => 'admin/dashboard'}, {:class => 'nav'} %>
                </li>
                <li>
                    <%= link_to 'Articles', {:controller => 'admin/articles'}, {:class => 'nav'} %>
                </li>
                <li>
                    <%= link_to 'Your', {:controller => 'admin/users'}, {:class => 'nav'} %>
                </li>
                <li>
                    <%= link_to 'Options', {:controller => 'admin/options'}, {:class => 'nav'} %>
                </li>
                <li class="right">
                    <%= link_to 'View your lough', index_url(:screen_name => controller.current_lough.screen_name), :class => 'nav' %>
                </li>
                <li class="right">
                	<%= link_to "Logout", logout_url, :class => 'nav' %>
                </li>
            </ul>
        </div>
        <div id="header">
        	<div id="left-tool" class="left"><%= yield(:left_header) %></div>
        	<div id="right-tool" class="right"><%= yield(:right_header) %></div>
        	<div class="clear"></div>
        </div>
        <div id="main" class="center">
    	<h2 class="title"><%= controller.action_title %></h2>
		<%= yield(:layout) %>
		</div>
        <div id="global-footer">
            <p class="copyright"><%= controller.current_lough.copy_right %></p>
        </div>
    </body>
</html>
